//
//  LYNavigationBar.h
//  Pods
//
//  Created by youger on 7/11/15.
//
//

#import <UIKit/UIKit.h>

#define Nav_Bar_Height        64
#define Nav_Bar_Button_Width  50
#define Nav_Bar_Button_Height 44

@interface LYNavigationBar : UIView

@property (strong, nonatomic) UIImageView * backgroundView;

@property (strong, nonatomic) UIColor  * titleColor;
@property (strong, nonatomic) NSString * titleText;
@property (strong, nonatomic) UIView   * titleView;
@property (strong, nonatomic) UIView   * lineView;
@property (strong, nonatomic) UIButton * leftBarButton;
@property (strong, nonatomic) UIButton * rightBarButton;

- (UIButton *)setLeftButtonTitle:(NSString *)title target:(id)target action:(SEL)action;
- (UIButton *)setRightButtonTitle:(NSString *)title target:(id)target action:(SEL)action;
- (UIButton *)setLeftButtonImage:(NSString *)imageName target:(id)target action:(SEL)action stretchableWidth:(CGFloat)stretchableWidth;
- (UIButton *)setRightButtonImage:(NSString *)imageName target:(id)target action:(SEL)action stretchableWidth:(CGFloat)stretchableWidth;
- (UIButton *)setLeftButtonImage:(NSString *)imageName highlighted:(NSString*)highlightedImage target:(id)target action:(SEL)action;
- (UIButton *)setRightButtonImage:(NSString *)imageName highlighted:(NSString*)highlightedImage target:(id)target action:(SEL)action;


@end

#import <LYRootViewController.h>

@interface LYRootViewController(LYNavigationBar)

@property (strong, nonatomic) LYNavigationBar * ly_navigationBar;

- (void)setBackButton;

- (void)backAction;


@end
